package com.luffyzhao.demo.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 获取 application.properties 配置文件 client. 开头的数据
 */
@Configuration
@ConfigurationProperties(prefix = "client")
public class ApplicationProperties {
    private int rate;

    public int getRate() {
        return rate;
    }

    public void setRate(int rate) {
        this.rate = rate;
    }


    private String sendDir;

    public String getSendDir() {
        return sendDir;
    }

    public void setSendDir(String sendDir) {
        this.sendDir = sendDir;
    }

    private String receiptDir;
    public String getReceiptDir() {
        return receiptDir;
    }

    public void setReceiptDir(String receiptDir) {
        this.receiptDir = receiptDir;
    }

    private String errorDir;
    private String receiptBackDir;

    public String getReceiptBackDir() {
        return receiptBackDir;
    }

    public void setReceiptBackDir(String receiptBackDir) {
        this.receiptBackDir = receiptBackDir;
    }

    public String getErrorDir() {
        return errorDir;
    }

    public void setErrorDir(String errorDir) {
        this.errorDir = errorDir;
    }

    private String producerTube;

    public String getProducerTube() {
        return producerTube;
    }

    public void setProducerTube(String producerTube) {
        this.producerTube = producerTube;
    }

    private String consumerTube;

    public String getConsumerTube() {
        return consumerTube;
    }

    public void setConsumerTube(String consumerTube) {
        this.consumerTube = consumerTube;
    }



    private String host;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }


    private int port;

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
